from django.contrib import admin

from course.models import Course, Student, Order, Evaluate, Outline


class CourseManager(admin.ModelAdmin):
    list_display = ["id","course_name","price",
    "course_len_time","course_life_time"  ,
                    "course_class"
    ]

class StudentManager(admin.ModelAdmin):
    list_display = ["username", "student_name","sex","age","phone"]

class OrderManager(admin.ModelAdmin):
    list_display = ["course","student","market_price","buy_time"]

class EvaluateManager(admin.ModelAdmin):
    list_display = ["course", "evaluate_time","content"]

class OutlineManager(admin.ModelAdmin):
    list_display = ["name1", "name2","name3","name4","name5"]

admin.site.register(Course,CourseManager)
admin.site.register(Student,StudentManager)
admin.site.register(Order,OrderManager)
admin.site.register(Evaluate,EvaluateManager)
admin.site.register(Outline,OutlineManager)
